package com.sap.sap_mangers.dto.sawbs;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.sql.Timestamp;

/**
 * @author 樊东升
 * @date 2022/8/5 0:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskForWeek {
    private String theme;
    private String context;
    private Integer year;
    private Integer order;
    private Integer week;
    /**
     * 负载文件
     */
    private MultipartFile file;
    /**
     * 图片
     */
    private MultipartFile image;
    /**
     * 文件路径
     */
    private String filePath;
    /**
     * 图片路径
     */
    private String imagePath;
    /**
     * 周任务创建人学号
     */
    private String user;
    /**
     * 周任务创建时间
     */
    private Timestamp createTime;
    /**
     * 周任务最后修改人学号
     */
    private String reviseUser;
    /**
     * 周任务最后修改时间
     */
    private Timestamp reviseTime;
    /**
     * 周任务修改次数
     */
    private Integer reviseFrequency;

    public TaskForWeek(String theme, String context, String filePath, String imagePath, String user, Timestamp createTime) {
        this.theme = theme;
        this.context = context;
        this.filePath = filePath;
        this.imagePath = imagePath;
        this.user = user;
        this.createTime = createTime;
    }

    public TaskForWeek(String theme, String context, String filePath, String imagePath, String reviseUser, Timestamp reviseTime, Integer reviseFrequency) {
        this.theme = theme;
        this.context = context;
        this.filePath = filePath;
        this.imagePath = imagePath;
        this.reviseUser = reviseUser;
        this.reviseTime = reviseTime;
        this.reviseFrequency = reviseFrequency;
    }
}
